#pragma once

#include "../umlmodel_global.h"

#include "UMLDiagramElement.h"

namespace uml {
class Bounds;

/// <summary>
/// UMLShape
/// The most general class for UML diagram elements that are not rendered as lines.
/// </summary>
class UMLMODEL_EXPORT UMLShape : public UMLDiagramElement {

public: // Constructors and destructors
    explicit UMLShape(const QString& umlType="uml::UMLShape");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// bounds getter
    /// the optional bounds of the shape relative to the origin of its nesting plane.
    /// </summary>
    shared_ptr<Bounds> bounds() const;

    /// <summary>
    /// bounds setter
    /// the optional bounds of the shape relative to the origin of its nesting plane.
    /// </summary>
    void setBounds(shared_ptr<Bounds> value);

private: // Fields
    /// <summary>
    /// bounds
    /// the optional bounds of the shape relative to the origin of its nesting plane.
    /// </summary>
    shared_ptr<Bounds> bounds_;

};

} // namespace uml
